Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add invocation_started_at #11291

Merged
merged 6 commits into from
Feb 18, 2025
Merged

Add invocation_started_at #11291

merged 6 commits into from
Feb 18, 2025

Conversation

gshank
Copy link
Contributor

@gshank gshank commented Feb 10, 2025

Resolves #11272

Problem

We want to store a time approximating the time the run started at, which in many cases will be more useful than the "generated_at" timestamp, which happens toward the end of a run.

Solution

We already save an invocation_id which is generated on new runs, so we add an additional "invocation_started_at", which is generated and reset in the same place as "invocation_id".

Note: this requires changes in dbt-common. A dbt-common branch is included here, but a new dbt-common release will be needed before merging this.

Checklist

  • I have read the contributing guide and understand what's expected of me.
  • I have run this code in development, and it appears to resolve the stated issue.
  • This PR includes tests, or tests are not required or relevant for this PR.
  • This PR has no interface changes (e.g., macros, CLI, logs, JSON artifacts, config files, adapter interface, etc.) or this PR has already received feedback and approval from Product or DX.
  • This PR includes type annotations for new and modified functions.

@gshank gshank requested a review from a team as a code owner February 10, 2025 17:34
@cla-bot cla-bot bot added the cla:yes label Feb 10, 2025
@gshank gshank marked this pull request as draft February 10, 2025 17:34
Copy link

codecov bot commented Feb 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.91%. Comparing base (2cde93b) to head (a5825e1).
Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11291      +/-   ##
==========================================
- Coverage   88.95%   88.91%   -0.05%     
==========================================
  Files         189      189              
  Lines       24171    24168       -3     
==========================================
- Hits        21502    21488      -14     
- Misses       2669     2680      +11     
Flag Coverage Δ
integration 86.17% <100.00%> (-0.11%) ⬇️
unit 62.53% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Unit Tests 62.53% <100.00%> (-0.01%) ⬇️
Integration Tests 86.17% <100.00%> (-0.11%) ⬇️

@gshank gshank marked this pull request as ready for review February 10, 2025 22:47
Copy link
Contributor

@QMalcolm QMalcolm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MichelleArk MichelleArk added the artifact_minor_upgrade To bypass the CI check by confirming that the change is not breaking label Feb 14, 2025
@jcserv jcserv self-requested a review February 18, 2025 15:40
@gshank gshank merged commit e60b41d into main Feb 18, 2025
63 of 65 checks passed
@gshank gshank deleted the invocation_started_at branch February 18, 2025 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
artifact_minor_upgrade To bypass the CI check by confirming that the change is not breaking cla:yes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add "run_started_at" field to run_results.json
3 participants